/*
 * This file Copyright (c) 2015. Walle.
 * (http://www.wallellen.com). All rights reserved.
 *
 *
 * This file is dual-licensed under both the
 * Walle Agreement (WA) and the GNU General Public License.
 * You may elect to use one or the other of these licenses.
 *
 * This file is distributed in the hope that it will be
 * useful, but AS-IS and WITHOUT ANY WARRANTY; without even the
 * implied warranty of MERCHANTABILITY or FITNESS FOR A
 * PARTICULAR PURPOSE, TITLE, or NONINFRINGEMENT.
 * Redistribution, except as permitted by whichever of the GPL
 * or WA you select, is prohibited.
 *
 * 1. For the GPL license (GPL), you can redistribute and/or
 * modify this file under the terms of the GNU General
 * Public License, Version 3, as published by the Free Software
 * Foundation.  You should have received a copy of the GNU
 * General Public License, Version 3 along with this program;
 * if not, write to the Free Software Foundation, Inc., 51
 * Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * 2. For the Walle Agreement (WA), this file
 * and the accompanying materials are made available under the
 * terms of the WA which accompanies this distribution, and
 * is available at http://www.wallellen.com/agreement.html
 *
 *
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
 */

package com.wallellen.knowledge.doc.domain;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * FarmDocgroupUser entity. @author <a href="mailto:wallellen@hotmail.com">WALLE</a>
 */

@Entity(name = "FarmDocgroupUser")
@Table(name = "farm_docgroup_user")
public class DocGroupUser implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @GenericGenerator(name = "systemUUID", strategy = "uuid")
    @GeneratedValue(generator = "systemUUID")
    @Column(name = "ID", length = 32, insertable = true, updatable = true, nullable = false)
    private String id;
    @Column(name = "APPLYNOTE", length = 128)
    private String applynote;
    @Column(name = "SHOWHOME", length = 2, nullable = false)
    private String showhome;
    @Column(name = "SHOWSORT", length = 10, nullable = false)
    private Integer showsort;
    @Column(name = "EDITIS", length = 2, nullable = false)
    private String editis;
    @Column(name = "LEADIS", length = 2, nullable = false)
    private String leadis;
    @Column(name = "USERID", length = 32, nullable = false)
    private String userid;
    @Column(name = "GROUPID", length = 32, nullable = false)
    private String groupid;
    @Column(name = "PCONTENT", length = 128)
    private String pcontent;
    @Column(name = "PSTATE", length = 2, nullable = false)
    private String pstate;
    @Column(name = "EUSER", length = 32, nullable = false)
    private String euser;
    @Column(name = "EUSERNAME", length = 64, nullable = false)
    private String eusername;
    @Column(name = "CUSER", length = 32, nullable = false)
    private String cuser;
    @Column(name = "CUSERNAME", length = 64, nullable = false)
    private String cusername;
    @Column(name = "ETIME", length = 16, nullable = false)
    private String etime;
    @Column(name = "CTIME", length = 16, nullable = false)
    private String ctime;

    // Constructors

    /**
     * default constructor
     */
    public DocGroupUser() {
    }

    /**
     * minimal constructor
     */
    public DocGroupUser(String ctime, String etime, String cusername,
                        String cuser, String eusername, String euser, String pstate,
                        String groupid, String userid, String leadis, String editis,
                        String showhome, Integer showsort) {
        this.ctime = ctime;
        this.etime = etime;
        this.cusername = cusername;
        this.cuser = cuser;
        this.eusername = eusername;
        this.euser = euser;
        this.pstate = pstate;
        this.groupid = groupid;
        this.userid = userid;
        this.leadis = leadis;
        this.editis = editis;
        this.showhome = showhome;
        this.showsort = showsort;
    }

    /**
     * full constructor
     */
    public DocGroupUser(String ctime, String etime, String cusername,
                        String cuser, String eusername, String euser, String pstate,
                        String pcontent, String groupid, String userid, String leadis,
                        String editis, String showhome, Integer showsort) {
        this.ctime = ctime;
        this.etime = etime;
        this.cusername = cusername;
        this.cuser = cuser;
        this.eusername = eusername;
        this.euser = euser;
        this.pstate = pstate;
        this.pcontent = pcontent;
        this.groupid = groupid;
        this.userid = userid;
        this.leadis = leadis;
        this.editis = editis;
        this.showhome = showhome;
        this.showsort = showsort;
    }

    // Property accessors

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCtime() {
        return this.ctime;
    }

    public void setCtime(String ctime) {
        this.ctime = ctime;
    }

    public String getEtime() {
        return this.etime;
    }

    public String getApplynote() {
        return applynote;
    }

    public void setApplynote(String applynote) {
        this.applynote = applynote;
    }

    public void setEtime(String etime) {
        this.etime = etime;
    }

    public String getCusername() {
        return this.cusername;
    }

    public void setCusername(String cusername) {
        this.cusername = cusername;
    }

    public String getCuser() {
        return this.cuser;
    }

    public void setCuser(String cuser) {
        this.cuser = cuser;
    }

    public String getEusername() {
        return this.eusername;
    }

    public void setEusername(String eusername) {
        this.eusername = eusername;
    }

    public String getEuser() {
        return this.euser;
    }

    public void setEuser(String euser) {
        this.euser = euser;
    }

    public String getPstate() {
        return this.pstate;
    }

    public void setPstate(String pstate) {
        this.pstate = pstate;
    }

    public String getPcontent() {
        return this.pcontent;
    }

    public void setPcontent(String pcontent) {
        this.pcontent = pcontent;
    }

    public String getGroupid() {
        return this.groupid;
    }

    public void setGroupid(String groupid) {
        this.groupid = groupid;
    }

    public String getUserid() {
        return this.userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getLeadis() {
        return this.leadis;
    }

    public void setLeadis(String leadis) {
        this.leadis = leadis;
    }

    public String getEditis() {
        return this.editis;
    }

    public void setEditis(String editis) {
        this.editis = editis;
    }

    public String getShowhome() {
        return this.showhome;
    }

    public void setShowhome(String showhome) {
        this.showhome = showhome;
    }

    public Integer getShowsort() {
        return this.showsort;
    }

    public void setShowsort(Integer showsort) {
        this.showsort = showsort;
    }

}